import { request } from "./service";
//动态路由
export function getInfo(data) {
  return request({
    url: "/user/role_menu/",
    method: "get",
    params: {}
  });
}
// 标识token
export function login(data) {
  return request({
    url: "/user/login/",
    method: "post",
    data: data
  });
}
// 功能权限
export function role_permissions(data) {
  return request({
    url: "/user/role_permissions/",
    method: "get",
    params: {}
  });
}
// 角色查询
export function roles(data) {
  return request({
    url: "/user/roles/",
    method: "get",
    params: {}
  });
}
//角色修改 新增 删除
export function useRoles(data) {
  return request({
    url: "/user/roles/",
    method: "post",
    data:data
  });
}
//组织查询
export function getDepartments(data) {
  return request({
    url: "/user/departments/",
    method: "get",
    params: data
  });
}
//组织新增 修改 删除
export function departments(data) {
  return request({
    url: "/user/departments/",
    method: "post",
    data:data
  });
}
//用户查询
export function getUsers(data) {
  return request({
    url: "/user/users/",
    method: "get",
    params: data
  });
}
//用户新增 修改 删除
export function users(data) {
  return request({
    url: "/user/users/",
    method: "post",
    data:data
  });
}
//审批任务查询
export function getBusiness_task(data) {
  return request({
    url: "/user/business_task/",
    method: "get",
    params: {}
  });
}
//审批规则查询
export function getWorkflow(data) {
  return request({
    url: "/user/workflow/",
    method: "get",
    params: {}
  });
}
//审批规则新增 修改 删除
export function workflow(data) {
  return request({
    url: "/user/workflow/",
    method: "post",
    data: data
  });
}
//审批规则设置
export function work_flow_rule(data) {
  return request({
    url: "/user/work_flow_rule/",
    method: "post",
    data: data
  });
}
//审批步骤查询
export function getWorkflow_step(data) {
  return request({
    url: "/user/workflow_step/",
    method: "get",
    params: data
  });
}
// 审批步骤删除
export function workflow_step(data) {
  return request({
    url: "/user/workflow_step/",
    method: "post",
    data: data
  });
}
// 工单查询
export function getWork_order(data) {
  return request({
    url: "/user/work_order_list/",
    method: "get",
    params: data
  });
}
//工单新装 修改
export function work_order(data) {
  return request({
    url: "/user/work_order/",
    method: "post",
    data: data
  });
}
//工单审批记录
export function getOrder_process_his(data) {
  return request({
    url: "/user/order_process_his/",
    method: "get",
    params: data
  });
}
//站内消息查询
export function getStation_msg_list(data) {
  return request({
    url: "/user/station_msg_list/",
    method: "get",
    params: data
  });
}
export function station_msg(data) {
  return request({
    url: "/user/station_msg/",
    method: "post",
    data: data
  });
}
//日志查询
export function getLog(data) {
  return request({
    url: "/user/log/",
    method: "get",
    params: data
  });
}
//邓煜琦
//指令管理
//新增 修改 删除 下达指令
export function futures_command_info(data) {
  return request({
    url: "/user/futures_command_info/",
    method: "post",
    data: data
  });
}
//策略查询
export function getStrategy_info(data) {
  return request({
    url: "/user/strategy_info/",
    method: "get",
    params: data
  });
}
//期货指令交易信息查询
export function getFutures_command_trade(data) {
  return request({
    url: "/user/futures_command_trade/",
    method: "get",
    params: data
  });
}
// 查询
export function getFutures_command_info(data) {
  return request({
    url: "/user/futures_command_info/",
    method: "get",
    params: data
  });
}
//指令自成交
// 基础信息查询
export function getCommand_self_info(data) {
  return request({
    url: "/user/command_self_info/",
    method: "get",
    params: data
  });
}
//增删查改
export function command_self_info(data) {
  return request({
    url: "/user/command_self_info/",
    method: "post",
    data: data
  });
}
//交易信息查询
export function getCommand_self_trade(data) {
  return request({
    url: "/user/command_self_trade/",
    method: "get",
    params: data
  });
}
//策略明细
export function getStrategy_trade_info(data) {
  return request({
    url: "/user/strategy_trade_info/",
    method: "get",
    params: data
  });
}
//报表统计
// 策略匹配明细
export function getReport_match_info(data) {
  return request({
    url: "/user/report_match_info/",
    method: "get",
    params: data
  });
}
// 头寸分析 品种头寸明细 品名下拉列表
export function getReport_product_position(data) {
  return request({
    url: "/user/report_product_position/",
    method: "get",
    params: data
  });
}
//盈亏明细
export function getReport_profit_loss(data) {
  return request({
    url: "/user/report_profit_loss/",
    method: "get",
    params: data
  });
}
//套保比例 品种下拉 策略套保比例监控
export function getReport_hedging_ratio(data) {
  return request({
    url: "/user/report_hedging_ratio/",
    method: "get",
    params: data
  });
}
//资金分析-策略资金占用
export function getReport_strategy_caps(data) {
  return request({
    url: "/user/report_strategy_caps/",
    method: "get",
    params: data
  });
}
// 查亚
export function return_account(data) {
  return request({
    url: "/user/return_account/",
    method: "get",
    params: data
  });
}
//币种查询接口
export function currency(data) {
  return request({
    url: "user/strategy_currency/",
    method: "get",
    params: data
  });
}
//衍生品交易日报
export function getDerivative_traded(data) {
  return request({
    url: "user/derivative_traded/",
    method: "get",
    params: data
  });
}
//客户号资金
export function getAccount_cap(data) {
  return request({
    url: "user/account_cap/",
    method: "get",
    params: data
  });
}
//敞口日月明细表
export function getExposure_trend(data) {
  return request({
    url: "user/exposure_trend/",
    method: "get",
    params: data
  });
}
//品名 组织下拉
export function getExposure_filter(data) {
  return request({
    url: "user/exposure_filter/",
    method: "get",
    params: data
  });
}
export function getDerivative_filter(data) {
  return request({
    url: "user/derivative_filter/",
    method: "get",
    params: data
  });
}







